import axios from './request';

export default {
  getUsers(data) {
    return axios.get('/users', {
      params: data,
    });
  },
  addUser(data) {
    return axios.post('/users', data);
  },
  editUser(id, data) {
    return axios.put(`/users/${id}`, data);
  },
  deleteUser(id) {
    return axios.delete(`/users/${id}`);
  },
  parametersUser(id, data) {
    return axios.put(`/users/group/${id}`, data);
  },
  usersExist(data) {
    return axios.get('/users/exist', {
      params: data,
    });
  },
};
